using Character;
using UnityEngine;

[DefaultExecutionOrder(-101)]
[SelectionBase]
public class PlayerEntity : CharacterEntity
{
    private static PlayerEntity instance;
    public static PlayerEntity Instance
    {
        get
        {
            if (instance == null)
                instance = GameObject.Find("Player").GetComponent<PlayerEntity>();
            return instance;
        }
    }

    [AutoComponent]
    public JumpConponent JumpConponent { get; private set; }
    [AutoComponent]
    public MoveAlongPathComponent MoveAlongPathComponent { get; private set; }
    [AutoComponent]
    public GroundDetectComponent GroundDetectComponent { get; private set; }
}
